<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        div{
            width: 600px;
            height: 60px;
            margin: 0 auto;
            border: 1px solid red;
        }

        ul{
            list-style: none;
            width: 100%;
            height: 100%;
            margin: 0;
            padding: 0;
            position: relative;
        }

        ul li{
            text-align: center;
            line-height: 60px;
            width: 20%;
            height: 100%;
            float: left;
            position: relative;
            color: white;
        }

        ul li::before{
            content: '';
            width: 50px;
            height: 50px;
            position: absolute;
            top: 5px;
            left: 35px;
            border-radius: 50%;
            background-color: skyblue;
            z-index: -1;
        }

        ul li.current{
            color: white;
        }

        ul li.current::before{
            background-color: skyblue;
        }

        .current ~ li{
            color: black;
        }

        .current ~ li::before{
            background-color: #d3d3d3;
        }

        ul li:not(:last-child)::after {
            content: '';
            position: absolute;
            top: 50%;
            transform: translateY(-50%);
            left: 85px;
            width: 100%;
            height: 2px;
            background: repeating-linear-gradient(to right, skyblue, skyblue 4px, transparent 4px, transparent 8px);
            z-index: -1;
        }

        ul li.current:not(:last-child)::after {
            background: repeating-linear-gradient(to right, #d3d3d3, #d3d3d3 4px, transparent 4px, transparent 8px);
        }

        .current ~ li:not(:last-child):after {
            background: repeating-linear-gradient(to right, #d3d3d3, #d3d3d3 4px, transparent 4px, transparent 8px);
        }

    </style>
</head>
<body>
    <div>
        <ul>
            <li>1</li>
            <li>2</li>
            <li class="current">3</li>
            <li>4</li>
            <li>5</li>
        </ul>
    </div>
</body>
</html>